<template lang='pug'>
  Modal.salers-tree-modal(v-model="treeModal" title="请选择所属销售")
    Tree(:data="treeData" show-checkbox @on-check-change="onCheckChange")
    template(slot="footer")
      Button(type="info" @click="treeModal = false") 确定
</template>

<script>

  export default {
    name:'',
    props:{
      treeData: Array
    },
    data () {
      return {
        treeModal: false
      }
    },

    components: {},

    computed: {},

    beforeMount() {},

    mounted() {},

    methods: {
      show () {
        this.treeModal = true
      },
      onCheckChange (val) {
        this.$emit('on-change', val)
      }
    },

    watch: {}

  }

</script>
<style lang='less'>
  .salers-tree-modal{
    .ivu-modal-body{
      max-height: 560px;
      overflow: auto;
    }
  }
</style>